package vamp
/**
 * The vamp_serviceweb.Transit entity.
 *
 * @author    
 *
 *
 */
class Transit {
    static mapping = {
         table 'transit'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         departureRoute column:'idroutedeparture'
         arrivalRoute column:'idroutearrival'
    }
    // Relation
    Route departureRoute
    // Relation
    Route arrivalRoute

    static constraints = {
        departureRoute()
        arrivalRoute()
    }
    String toString() {
        return "${idroutedepartureRoute}"
    }
}
